x11: Store the EGL config in the display
authorBenjamin Otte <otte@redhat.com>
Wed, 9 Jun 2021 11:42:19 +0000 (13:42 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:06:05 +0000 (16:06 +0200)
commitc787fe7ecb87329aabbce504f1e7f6ee8e2a67ef
treee4790f2d4d73e13c340fcc03f143d8ee0e6da147
parentbdb49720be78ed271141f848271b51e5f73e29d1
x11: Store the EGL config in the display

We only have one config, because we use the same Visual everywhere.
Store this config in the GdkDisplayX11 struct for easy access.

Also do this on initialize, because if creating the config fails, we
want to switch to GLX instead of failing to do GL at all.

This also simplifies a lot of code as we can share Visual, Colormap, etc
across surfaces.
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkglcontext-egl.c